
<LINK REL=StyleSheet HREF="css/contentstyle.css" TYPE="text/css" MEDIA=screen>
<div id="displayer">
<?php
require('connect.php');
$query=mysql_query("SELECT * FROM comment ORDER BY id DESC");
while($rows=mysql_fetch_assoc($query))
{
     $id=$rows['id'];
     $dname=$rows['name'];
     $dcomment=$rows['comment'];
     if(!isset($_SESSION['username'])){
      $_SESSION['username']=NULL;  
     }
     
     if($_SESSION['username']=="admin"){
     $linkdel="<a href=\"include/comment/delete.php?id=" . $rows['id'] . "\">delete</a>";
     }else{
        $linkdel="";
     }
     echo '<font color="red">Name:</font>  ' . $dname . '<br />' . '<br />' . '<font color="red">Comments:</font>  ' . '<br />' . $dcomment . '&nbsp' . '&nbsp' .
      '&nbsp' . '&nbsp' .  $linkdel . '<br />' . '<br />' . 
     '<hr size="5px" width="500px" color="blue" />'  ;
     
}
?>
</div>